package com.atguigu.tingshu.live.service;

import com.atguigu.tingshu.model.live.LiveRoom;
import com.atguigu.tingshu.vo.live.LiveRoomVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface LiveRoomService extends IService<LiveRoom> {
    /**
     * @description: 获取当前用户直播
     * @author Petrichor
     * @date 2024/1/12 20:47
     * @return 直播房间
     **/
    LiveRoom getCurrentLive(Long userId);
    /**
     * 创建直播
     * @author Petrichor
     * @date 2024/1/12 21:22
     * @param liveRoomVo 直播间信息
     * @return liveRoom
     **/
    LiveRoom saveLiveRoom(LiveRoomVo liveRoomVo, Long userId);
    /**
     * 获取当前直播列表
     * @author Petrichor
     * @date 2024/1/12 21:26
     * @return 当前直播列表
     **/
    List<LiveRoom> findLiveList();
}
